package com.zenithmind.note.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

/**
 * 笔记评论传输对象
 */
@Data
@Schema(name = "笔记评论参数", description = "笔记评论参数")
public class NoteCommentDTO {
    
    @Schema(description = "评论ID")
    private String id;
    
    @Schema(description = "笔记ID")
    @NotNull(message = "笔记ID不能为空")
    private String noteId;
    
    @Schema(description = "父评论ID，用于回复功能")
    private String parentId;
    
    @Schema(description = "评论内容")
    @NotBlank(message = "评论内容不能为空")
    @Size(max = 1000, message = "评论内容长度不能超过1000个字符")
    private String content;
} 